NewtonScript: Syntax

This document covers issues related to embedding NewtonScript syntax in HTML: quoting for &, <, >, "; unicode; comments. A new section covers embedding HTML in NewtonScript.

A more advanced document (available to registered users) covers:

NewtonScript in HTML

NewtonScript source for expressions and methods is processed normally as HTML before being compiled on your Newton. You need to do a few things differently because of HTML (delimiters) so that your embedded NewtonScript source is converted as you intended. (Use how the example appears in your browser rather than the underlying HTML source since that has extra quoting):

HTML in NewtonScript

HTML can be embedded inside a NewtonScript string. This can be useful when using Newt's Cape via its API from NTK Inspector or another application (e.g., HelpURL example). There are two situations where you need to be careful with HTML in strings:

For More Info

This document (in all its formats) is © 1995-98. Steve Weyer, Greg Simon. All Rights Reserved Worldwide

Version 1.5. Last updated: Jan 1998


Steve Weyer - weyer@kagi.com
Greg Simon - gsimon@ricochet.net